﻿using System;

using FishServe.Core.Services.UpdaterService.Common;
using FishServe.Core.Services.UpdaterService.Interfaces;

namespace FishServe.Core.Services.UpdaterService
{
	public class ReleaseManifestService: IReleaseManifestService
	{
		#region IReleaseManifestService Members

		public ReleaseManifest RetrieveReleaseManifest()
		{
			throw new NotImplementedException();
		}

		public ReleaseManifest RetrieveReleaseManifestFrom(string fullQualifiedPath)
		{
			//Check to ensure the string is not empty or null;
			Guard.AssertFileExists(fullQualifiedPath);
			ReleaseManifest manifest =  ReleaseManifestReader.ReadReleaseManifest(fullQualifiedPath);
			return manifest;
		}

		#endregion
	}
}
